from scrapy import cmdline
#执行语句
cmdline.execute("scrapy crawl shells".split())